package com.guigu.qingcheng.mapper;

import com.guigu.qingcheng.pojo.TbAd;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

public interface TbAdMapper extends Mapper<TbAd> {

    @Select("SELECT MAX(seq) FROM tb_ad WHERE POSITION=#{position}")
    Integer selectMaxSeq(@Param("position") String position);
}